/*** Trigger Name: FullfilmentItemRoundRobin 
 * Author: Accenture
 * Date: 13-Jun-2011
 * Requirement/Project Name: iFulfill
 * Requirement Description: 
 **/


trigger FullfilmentItemRoundRobin on Fullfilment_Item__c(after Insert, after update)
{
      // Check if trigger is executed when insertion or update
      if(trigger.isinsert) 
       {
          IFullfilmentItemRoundRobin.executeRoundRobin(Trigger.new,  trigger.isinsert  , trigger.isinsert,  trigger.newMap ,true);
       }
       else
       {
            IFullfilmentItemRoundRobin.executeRoundRobin(Trigger.new,  trigger.isUpdate, trigger.isinsert ,trigger.oldMap ,false);
       }
       
}